<div class="modal-header">
	<a class="close" data-dismiss="modal">&times;</a>
	<h5>Customer Name:<font color="#227bdd"><?php echo $detail->supplier_name;?> </font></h5>
	<h5>Refecrance  No: <font color="#227bdd"><?php echo $detail->referance_no;?></font></h5>
	<h5>Transaction Type:<font color="#227bdd"><?php echo $detail->	transaction_type;?></font></h5>
</div>
<div class="modal-body">

<table class="table table-striped table-bordered" width="100%" id="example">
	<thead>
	
    <tr>
		<th>Product Name</th>
        <th>Code</th>
		 <th>Qty</th>
		  <th>Rate</th>
		   <th>Amount</th>
		    <th>Discount</th>
			 <th>Tax</th>
			  <th>Excise</th>
			   <th>Total</th>
			   
	</tr>
    </thead>
	<?php foreach ($purchase_details as $product):?>
		<tr>
			<td> <?php $data=$this->daily_model->get_product_name($product->id_product); echo $data->name;?></td>
			<td><?php  echo $data->code; ?></td>
			<td><?php  echo $product->quantity; ?></td>
            <td><?php  echo $product->rate; ?></td>
            <td><?php  echo $product->amount; ?></td>
			<td><?php  echo $product->discount; ?></td>
			<td><?php  echo $product->tax; ?></td>
			<td><?php  echo $product->excise; ?></td>
			<td><?php  echo $product->total; ?></td>
		</tr>
	<?php endforeach;?>
</table>


</div>
<div class="modal-footer">
	<a class="btn btn-primary" data-dismiss="modal">Close</a>
</div>